<template>
  <div>
      <McPopoverMulSelect v-model="v" :mc-config="mcConfig" :el-checkbox-attr="{'disabled':false}" >
        <template #item="scope">
          <el-tag>{{scope.row.id}}</el-tag>
        </template>

      </McPopoverMulSelect>

    <el-button @click="print">打印</el-button>
    <el-button @click="change">改变</el-button>
  </div>
</template>

<script>
import McPopoverMulSelect from './components/McPopoverMulSelect'
export default {
  data(){
    return {
      v:"",
      mcConfig:{
      'api':{'method':'get','url':'/public/table.json','fields':[],'limit':10},
      'pkField':'id',
      'pkTextField':'userName'
      }
    }
  },
  components:{
    McPopoverMulSelect
  },
  methods:{
      print(){
          console.log(this.v)
      },
      change(){
        this.v="42";
      }
  }
}
</script>

<style>

</style>
